﻿<ResourceDictionary 
    x:Class="Poet.Resources.Converters"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:converters="clr-namespace:Poet.Converters">
    <ToStringConverter x:Key="ToStringConverter"/>
    <ControlFontSizeConverter x:Key="ControlFontSizeConverter"/>
    <converters:PenToStringConverter x:Key="PenToStringConverter"/>
    <converters:SyntaxToStringConverter x:Key="SyntaxToStringConverter"/>
    <BooleanConverter OnTrue="False" OnFalse="True" OnNull="True" x:Key="BooleanInvertConverter"/>
    <BooleanConverter OnTrue="Visible" OnFalse="Collapsed" x:Key="BooleanToVisibilityConverter"/>
    <BooleanConverter OnTrue="Collapsed" OnFalse="Visible" x:Key="BooleanToVisibilityInvertedConverter"/>
    <VisibilityConverter OnVisible="True" OnCollapsed="False" x:Key="VisibilityToBooleanConverter"/>
    <NullConverter OnNull="False" OnNotNull="True" x:Key="NullToBooleanConverter"/>   
    <NullConverter OnNull="Collapsed" OnNotNull="Visible" x:Key="NullToVisibilityConverter"/>
    <NullConverter OnNull="Visible" OnNotNull="Collapsed" x:Key="NullToVisibilityInvertedConverter"/>
    <IncrementConverter x:Key="IncrementConverter"/>
    <IncrementConverter x:Key="DecementConverter" Increment="-1"/>
    <FlagConverter x:Key="FlagConverter"/>    
    <converters:ImageSourceToImageConverter x:Key="ImageSourceToImageConverter"/>
    <converters:EncodingToBooleanConverter x:Key="EncodingToBooleanConverter"/>
    <converters:CharArrayToStringConverter x:Key="CharArrayToStringConverter"/>
	<converters:BrushToStringConverter x:Key="BrushToStringConverter"/>
</ResourceDictionary>
